package lab02.test35;

import java.util.Scanner;

public class Test35 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("请输入经理的工资：");
        Manager manager=new Manager();
        manager.setSalary(in.nextDouble());
        System.out.println("经理的工资为："+manager.computeSalary());

        System.out.println("请输入销售人员的基本工资：");
        Salesman  salesman = new Salesman();
        salesman.setBasePay(in.nextDouble());
        System.out.println("请输入销售人员的销售数量：");
        salesman.setSaleNumble(in.nextInt());
        System.out.println("销售人员的工资为："+salesman.computeSalary());

        System.out.println("请输入员工的工作天数：");
        Worker worker=new Worker();
        worker.setDay(in.nextDouble());
        System.out.println("员工的工资为："+worker.computeSalary());
    }
}
